/****************************************************
*	OSMF Edge Media Player version 1.2.0
* 
*	Author: Emanuele Manco
* 	E-Mail: hello@flashedge.net
*	Web: http://activeden.net/user/flashedge
*  
*****************************************************/

package net.flashedge.utils 
{
	public class Arranger
	{
		
		public function Arranger() 
		{
			
		}
		
		public function place( obj, w:Number, h:Number ):void {
			
			switch(obj.name) {
				case "ring":
					obj.x = w * .5;
					obj.y = h * .5;
				break;
				case "shader":
					obj.width = w;
					obj.height = h;
				break;
				}
		}
		
		public function placeButtons(objects, w:Number, h:Number, controlsPadding:Number):void {
				
			objects.playBtn.x = objects.pauseBtn.x = Math.floor( controlsPadding + (objects.playBtn.width));
			objects.playBtn.y = objects.pauseBtn.y = 19;
				
			// fullscreen icon
			objects.fsBtn.x = w - controlsPadding - objects.fsBtn.width;
			objects.fsBtn.y = 10;
				
			// hd icon
			objects.hdBtn.x = objects.fsBtn.x - 30;
			objects.hdBtn.y = objects.fsBtn.y;
		
		
		}
		
	}

}